package com.jprocms.module.cms.convert.content;

import com.jpro.framework.common.pojo.PageResult;
import com.jprocms.module.cms.controller.admin.content.vo.ContentCountCreateReqVO;
import com.jprocms.module.cms.controller.admin.content.vo.ContentCountRespVO;
import com.jprocms.module.cms.controller.admin.content.vo.ContentCountUpdateReqVO;
import com.jprocms.module.cms.dal.dataobject.content.ContentCountDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 内容计数 Convert
 *
 * @author jprocms
 */
@Mapper
public interface ContentCountConvert {

    ContentCountConvert INSTANCE = Mappers.getMapper(ContentCountConvert.class);

    ContentCountDO convert(ContentCountCreateReqVO bean);

    ContentCountDO convert(ContentCountUpdateReqVO bean);

    ContentCountRespVO convert(ContentCountDO bean);

    List<ContentCountRespVO> convertList(List<ContentCountDO> list);

    PageResult<ContentCountRespVO> convertPage(PageResult<ContentCountDO> page);

}
